package com.hksj.Intelligentmanagement.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @ClassName AlarmConfiguration
 * @Author zengke
 * @Date 2023/7/17 15:33
 */
@Data
@TableName("gm_alarm_configuration")
public class AlarmConfigurationEntity extends BaseEntity {

    //楼栋id
    @ApiModelProperty("楼栋id")
    private String buildingId;

    //科室id
    @ApiModelProperty("科室id")
    private String departmentId;

    //气体id
    @ApiModelProperty("气体id")
    private String gasId;

    //告警值名称
    @ApiModelProperty("告警值名称")
    private String alarmValueName;

    //告警值代码
    @ApiModelProperty("告警值代码")
    private String alarmValueCode;

    //告警阈值
    @ApiModelProperty("告警阈值")
    private String alarmThreshold;

    //告警值单位
    @ApiModelProperty("告警值单位")
    private String alarmValueUnit;

    //告警提示
    @ApiModelProperty("告警提示")
    private String alarmNotice;

    //备注
    @ApiModelProperty("备注")
    @TableField(updateStrategy = FieldStrategy.IGNORED) //忽略非空判断,前端传递空值时会同步更改数据库中该字段的值
    private String remark;

}
